<?php 
include TMPL_PATH.'public/header.phtml';
?>
<link rel="stylesheet" type="text/css" href="/statics/js/calendar/jscal2.css"/>
<link rel="stylesheet" type="text/css" href="/statics/js/calendar/border-radius.css"/>
<link rel="stylesheet" type="text/css" href="/statics/js/calendar/win2k.css"/>
<script type="text/javascript" src="/statics/js/calendar/calendar.js"></script>
<script type="text/javascript" src="/statics/js/calendar/lang/zh-cn.js"></script>
<div class="subnav">
    <div class="content-menu ib-a blue line-x">
        <a href='javascript:;' class="on" ><em>下载运单号</em></a></div>
</div>
<form action="__SELF__" method="post" id="myform">
<div class="pad-10">
<div class="col-tab">
<div class="contentList pad-10">
<div>
	<input type="radio" name="down_type" onclick="downType(1)" value="1" checked> IPS 
	<input type="radio" name="down_type" onclick="downType(2)" value="2"> 钱宝 
<!--	<input type="radio" name="down_type" onclick="downType(3)" value="3"> 首信 -->
	<input type="radio" name="down_type" onclick="downType(4)" value="4"> 其他 
</div>
<div class="bk15"></div>
<table width="100%"  class="table_form">
	<tr id="test1">
    <td colspan="2" class="y-bg">
    开始日期&nbsp;&nbsp;
    <input  class="input-text" value="<?php echo date('Y-m-d');?>" name="start_date" id="start_date">&nbsp;&nbsp;&nbsp;
				<script type="text/javascript">
			Calendar.setup({
			weekNumbers: false,
		    inputField : "start_date",
		    trigger    : "start_date",
		    dateFormat: "%Y-%m-%d",
		    showTime: false,
		    minuteStep: 1,
		    onSelect   : function() {this.hide();}
			});
        </script>
    结束日期&nbsp;&nbsp;
    <input  class="input-text" value="<?php echo date('Y-m-d');?>" name="end_date" id="end_date">
				<script type="text/javascript">
			Calendar.setup({
			weekNumbers: false,
		    inputField : "end_date",
		    trigger    : "end_date",
		    dateFormat: "%Y-%m-%d",
		    showTime: false,
		    minuteStep: 1,
		    onSelect   : function() {this.hide();}
			});
        </script>
	</td>
	</tr>
  <tr  id="test2" style="display:none">
    <th width="120">订单号列表：</th>
    <td class="y-bg">
    <textarea rows="20" cols="30" name="ordersn"></textarea>
    <div class="infoShow">多个订单号请回车换行，一行一个订单号</div>
	</td>
	</tr>
  </table>
</div>

<div class="bk15"></div>
<input name="dosubmit" type="submit" class="button" value="提交" class="button">
</div>
</div>
</form>
</body>
</html>
<script>
function downType(type)
{
	if(type==4){
		$('#test2').css('display','block');
		$('#test1').css('display','none');
	}else{
		$('#test1').css('display','block');
		$('#test2').css('display','none');
	}
}
</script>